
package com.yimixian.app.common;

import android.text.format.DateUtils;

import com.yimixian.app.rest.YmxDataService;

public class Constants {

    public static final String YUAN = "\u00A5";

    public static final String SEPARATOR = System.getProperty("line.separator");

    public static final String SHARED_PREFS_NAME = "YMX_SETTINGS";

    public static final String WECHAT_APP_ID = "wx0a4480197511c060";
    public static final String WECHAT_APP_SECRECT = "36bb2fd6cd97bfd642f23cff02cac666";
    public static final String QQ_WALLET_APP_ID = "1104445626";
    public static final String QQ_WALLET_SCHEME = "qwallet" + QQ_WALLET_APP_ID;
    public static final String QQ_WALLET_RESPONSE_CODE = "qq_wallet_response_code";

    public static final String BAIDU_COORD_SYSTEM = "BD-09";
    public static final String DELIVERY_TYPE_PICK_UP = "PICKUP";
    public static final String YMX_CRASH_SDCARD_PATH = "ymx/crash";

    public static final int CREATE_ADDRESS_REQUEST_CODE = 22;
    public static final int MODIFY_ADDRESS_REQUEST_CODE = 23;
    public static final int USER_REGISTRATION_REQUEST_CODE = 24;
    public static final int PICK_ADDRESS_REQUEST_CODE = 25;
    public static final int SEARCH_POI_REQUEST_CODE = 26;
    public static final int CHANGE_ADDRESS_REQUEST_CODE = 27;
    public static final int CONFIRM_ORDER_REQUEST_CODE = 28;
    public static final int USER_INFO_REQUEST_CODE = 29;
    public static final int LOCATION_CONFIRM_REQUEST_CODE = 30;
    public static final int CHOOSE_CITY_REQUEST_CODE = 31;
    public static final int WEBVIEW_CHOOSE_ADDRESS_REQUEST_CODE = 32;
    public static final int CART_REGIST_REQUEST_CODE = 33;
    public static final long APP_BACK_WAIT_DEFAULT_TIME = 2 * DateUtils.SECOND_IN_MILLIS;
    public static final String APP_FIRST_USE_KEY = "app_first_use";
    public static final String APP_VERSION_CODE = "app_version_code";
    public static final String PICK_UP_STORE_NAME = "pick_up_store_name";
    public static final int REQUESTCODE_SELECT_COUPON = 1000;
    public static final int PAGE_SIZE = 10;
    public static final String ISUPDATEORDERTABRPOINT = "is_update_order_tab_point";//缓存订单tab更新状态

    public static final String QUANTITY_CHANGE = "quantity_change";
    public static final String GOOD_ID = "good_id";
    public static final String TYPE_GIFT_FLAG = "type_gift_flag";
    public static final String ITEM_GIGTTYPE_MIN_PRICE = "item_gifttype_min_price";
    public static final String PAY_SUCCESS = "pay_success";
    public static final String CONNECT_SERVICE = "connect_service";

    public static final String IS_LOADING_DATA = "is_loading_data";
    public static final String ANIMATION_GOODSID = "animation_goodsid";

    // Broadcast
    public static final String BROADCAST_RECEIVE_ADDRESS_CHANGE = "com.yimixian.app.address.change";
    public static final String BROADCAST_RECEIVE_ADDRESS_CHANGE_FINISH = "com.yimixian.app.address.change.finish";
    public static final String QUANTITY_CHANGE_BROADCAST = "intent.1mxian.quantity.change";
    public static final String CART_TOTAL_PRICE_CHANGE_BROADCAST = "intent.1mxian.cart.total.price.change";
    public static final String PLUS_BUTTON_CLICKED_BROADCAST = "intent.1mxian.plus.button.clicked";
    public static final String TYPE_GIFT_FLAG_BROADCAST = "intent.1mxian.type.gift.flag";
    public static final String MINUS_BUTTON_CLICKED_BROADCAST = "intent.1mxian.minus.button.clicked";
    public static final String STATE_HOMEFRAGMENT_BUTTON_BROADCAST = "intent.1mxian.homefragment.button";
    public static final String STATE_HOMENEWFRAGMENT_BUTTON_BROADCAST = "intent.1mxian.homenewfragment.button";
    public static final String STATE_SESSIONLIST_BUTTON_BROADCAST = "intent.1mxian.sessionlistfragment.button";
    public static final String STATE_CARTFRAGMENT_BUTTON_BROADCAST= "intent.1mxian.cartfragment.button";
    public static final String STATE_DETAILFRAGMENT_BUTTON_BROADCAST = "intent.1mxian.detailfragment.button";
    public static final String STATE_SEARCHFRAGMENT_BUTTON_BROADCAST = "intent.1mxian.searchfragment.button";
    public static final String STATE_COUDANFRAGMENT_BUTTON_BROADCAST = "intent.1mxian.coudanfragment.button";
    public static final String STATE_HUANGOUFRAGMENT_BUTTON_BROADCAST = "intent.1mxian.huangoufragment.button";

    //EventBus
    public static final String EVENT_BUS_LOGIN_SUCCESS_MESSAGE = "event_bus_login_success_message";
    public static final String EVENT_BUS_GET_ADDRESS_SUCCESS_MESSAGE = "event_bus_get_address_success_message";
    public static final String EVENT_BUS_TIME_OUT_MESSAGE = "event_bus_time_out_message";
    public static final String EVENT_BUS_CART_FRAGMENT_SHOW_FLMASKING = "event_bus_cart_fragment_show_flmasking";
    public static final String EVENT_BUS_CART_FRAGMENT_HIDE_FLMASKING = "event_bus_cart_fragment_hide_flmasking";
    public static final String EVENT_BUS_CART_FRAGMENT_FREEGOODS_SHOW_LFMASKING = "event_bus_cart_fragment_freegoods_show_flmasking";

    public static final String EVENT_BUS_HOME_FRAGMENT_REFRESH = "event_bus_home_fragment_refresh";
    public static final String EVENT_BUS_CART_FRAGMENT_REFRESH = "event_bus_cart_fragment_refresh";
    public static final String EVENT_BUS_GET_CART = "event_bus_get_cart";
    public static final String EVENT_BUS_DISSMISS_DIALOG = "event_bus_dissmiss_dialog";
    public static String MOCK_END_POINT= YmxDataService.RELEASE_ENDPOINT;
    public static final String EVENT_BUS_PAY_SUC_UPDATE_CART = "event_bus_pay_suc_update_cart";

    public static final String EVENT_BUS_GOODS_DETAIL_IMAGE = "event_bus_goods_detail_image";
    public static final String EVENT_BUS_GOODS_DETAIL_COMMENT = "event_bus_goods_detail_comment";
    public static final String EVENT_BUS_COMMENT_PUBLISH = "event_bus_comment_publish";
    public static final String EVENT_BUS_COMMENT_REPORT = "event_bus_comment_report";
    public static final String EVENT_BUS_UPDATE_DESCRIPTION = "event_bus_update_description";

    public static final String REFRESH_UI = "refresh_ui";

    public static final String SYNC_UNLOGIN_DATA_SUCCESS = "sync_unlogin_data_success";
    public static final String REGION_VERION = "region_verion";
    public static final String REGION_DATA = "region_data";
    public static final int HOME_TITLE_MAX_LENGTH = 8;

    /**
     * Release Switch
     */
    public enum ServerEnvironment {
        Release, Test, Staging, Mock, RD
    }

    /**
     * 下拉上推
     */
    public interface Action{
        public static final int PUSHUP = 0;
        public static final int  PULLDOWAN = 1;
    }

    /**
     * 红点显示的各种类型
     */
    public interface RedPointType{
        public static String ORDER = "ORDER";
        public static String BOUNS = "BONUS";
    }

    /**
     * headView点击类型
     */
    public enum  HeadViewType{
        Banners, Metro, SingleBanner, SetHeadLine;
    }
    /**
     * 页面类型
     */
    public enum  PageType{
        HOME, SESSION ,CATEGORY,SEARCH;
    }

    /**
     * 定位结果（首页 和 分类页面）
     */
    public class LocatedType{
        public static final String LOCATED_START= "located_start";
        public static final String LOCATED_SUCCESS= "located_success";
        public static final String LOCATED_FAILED= "located_failed";
    }

    /**
     * 倒计时数据页面类型
     */
    public class ServicePageType{

        public static final String TOUNBINDSERVICE= "unbind_service";
        public static final String HOMEFRAGMENT= "service_homefragment";//首页
        public static final String SESSIONFRAGMENT= "service_sessionfragment";//活动专场
        public static final String SEARCHFRAGMENT= "service_searchfragment";//搜索页面
        public static final String CATEGORYFRAGMENT= "service_categoryfragment";//分类页
    }

}
